package com.ch3cooh.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @功能:
 * @作者:chanson
 * @时间:2018/5/3 22:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ApiResult {

    private Integer code;
    private String msg;
    private Object data;

    public static ApiResult success(){
        return new ApiResult(200,"success",null);
    }

    public static ApiResult success(Object data){
        return new ApiResult(200,"success",data);
    }

}
